package com.sqsf.javabean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "com.sqsf")
public class AppConfig {
    @Bean
    public User user() {
        User user = new User();
        user.setId(10);
        user.setName("John Doe");
        user.setAge(30);
        return user;
    }
}
